package com.hangkong.service;


import com.hangkong.model.Flight;
import org.apache.ibatis.annotations.Param;


import java.util.Date;
import java.util.List;

public interface FlightService {

    Flight insert(String flightno,
                  String deptcity,
                  String arrcity,
                  String flightdate
                 );

    Flight del(Integer id);

    List<Flight> getAll();

    Flight showone(Integer id);

    Flight findone(String deptcity,String arrcity,String flightdate);

    Flight update(Integer id, String flightno, String deptcity, String arrcity);

    String getMaxId();

    Integer findmaxid();

    Integer insertcabF(Integer maxid, String cabinnamef, String cabinpricef, String countf);

    Integer insertcabY(Integer maxid, String cabinnamey, String cabinpricey, String county);

    Integer insertcabE(Integer maxid, String cabinnamee, String cabinpricee, String counte);

    Integer insertcabR(Integer maxid, String cabinnamer, String cabinpricer, String countr);
}